package com.eric.test.list;

import java.util.Arrays;
import java.util.List;

/**
 * @description: list 生成器
 * @author: liuBing
 * @create: 2023-08-22 17:54
 **/
public class ListGenerator {

    public static List<ListEntity> getObjectList() {
        return Arrays.asList(
                new ListEntity(1L, "k1", "v1"),
                new ListEntity(2L, "k1", "v2"),
                new ListEntity(3L, "k3", "v3"),
                new ListEntity(4L, "k4", "v4"));
    }

    public static List<String> getStringList() {
        return Arrays.asList("1", "2", "3","5","4");
    }

    /**
     * transient 带有它的属性，不会被序列化
     */
    transient int e = 1;

}
